package org.geekbang.time.mathbasicthought.lesson1_binary;

public class LogicOperation {
    public static void main(String[] args) {
        int num1 = 54;
        int num2 = 45;
        System.out.println(or(num1, num2));
        System.out.println(and(num1, num2));
        System.out.println(xor(num1, num1));
    }

    public static int or(int num1, int num2) {
        return num1 | num2;
    }

    public static int and(int num1, int num2) {
        return num1 & num2;
    }

    public static int xor(int num1, int num2) {
        return num1 ^ num2;
    }
}
